home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#27 (Dec 87)
/
Tear off Menus example
/
ls Pascal version
/
TearMenuRes.derez
< prev
next >
Wrap
Text File
|
1987-11-19
|
7KB
|
358 lines
resource 'BNDL' (128) {
'TEAR',
0,
{ /* array TypeArray: 2 elements */
/* [1] */
'ICN#',
{ /* array IDArray: 1 elements */
/* [1] */
0, 128
},
/* [2] */
'FREF',
{ /* array IDArray: 1 elements */
/* [1] */
0, 128
}
}
};
resource 'DITL' (3000) {
{ /* array DITLarray: 3 elements */
/* [1] */
{155, 142, 180, 205},
Button {
enabled,
"Okay"
},
/* [2] */
{6, 5, 112, 361},
StaticText {
disabled,
" - Tear "
"Menu -\n\nWritten by Darryl Lovato of TML "
"Systems, Inc.\n\nThis program shows how to"
" make a window tear off of a menu. Idea"
" from Hypercard by Bill Atkinson.\n"
},
/* [3] */
{115, 5, 149, 361},
StaticText {
enabled,
"Complete Pascal source code for this pro"
"gram is available from MacTutor Magazine"
"."
}
}
};
resource 'DLOG' (3000, preload) {
{58, 74, 244, 436},
dBoxProc,
visible,
goAway,
0x0,
3000,
"New Dialog"
};
resource 'FREF' (128) {
'APPL',
0,
""
};
resource 'ICN#' (128, purgeable, preload) {
{ /* array: 2 elements */
/* [1] */
$"000F F400 007A FD00 01FF F780 05FF 7FE0"
$"07FF FFB0 0BFB FFD8 0FFF B578 1FDF F6FC"
$"1F7E E8BC 1E77 A074 3E37 807C 1C00 006C"
$"3FF0 3E3C 2E38 633C 3DE0 3C24 1E60 4C24"
$"1400 4004 1C00 0004 0C00 4008 0400 0038"
$"0404 6028 0001 8038 0200 0078 0008 1050"
$"0103 C060 0180 0140 0780 0040 7D20 0440"
$"4510 0820 4887 E050 4980 0088 7FFF FFF8",
/* [2] */
$"000F F400 007F FD00 01FF FF80 05FF FFE0"
$"07FF FFF0 0FFF FFF8 0FFF FFF8 1FFF FFFC"
$"1FFF FFFC 1FFF FFFC 3FFF FFFC 1FFF FFFC"
$"3FFF FFFC 3FFF FFFC 3FFF FFFC 1FFF FFFC"
$"1FFF FFFC 1FFF FFFC 0FFF FFF8 07FF FFF8"
$"07FF FFF8 03FF FFF8 03FF FFF8 01FF FFF0"
$"01FF FFE0 01FF FFC0 07FF FFC0 7FFF FFC0"
$"7FFF FFE0 7FFF FFF0 7FFF FFF8 7FFF FFF8"
}
};
resource 'MENU' (1) {
1,
textMenuProc,
0x7FFFFFFD,
enabled,
apple,
{ /* array: 2 elements */
/* [1] */
"About Tear Menu...", noIcon, "", "", plain,
/* [2] */
"-", noIcon, "", "", plain
}
};
resource 'MENU' (2) {
2,
textMenuProc,
0x7FFFFFF5,
enabled,
"File",
{ /* array: 1 elements */
/* [1] */
"Quit", noIcon, "Q", "", plain
}
};
resource 'MENU' (3) {
3,
textMenuProc,
0x7FFFFFFD,
enabled,
"Edit",
{ /* array: 6 elements */
/* [1] */
"Undo", noIcon, "Z", "", plain,
/* [2] */
"-", noIcon, "", "", plain,
/* [3] */
"Cut", noIcon, "X", "", plain,
/* [4] */
"Copy", noIcon, "C", "", plain,
/* [5] */
"Paste", noIcon, "V", "", plain,
/* [6] */
"Clear", noIcon, "", "", plain
}
};
resource 'WIND' (1) {
{100, 100, 292, 228},
documentProc,
invisible,
goAway,
0x0,
""
};
resource 'WIND' (2) {
{81, 143, 224, 327},
documentProc,
visible,
goAway,
0x0,
"Current Pattern"
};
data 'TEAR' (0) {
$"1B54 6561 7220 4D65 6E75 2C20 6279 2044" /* .Tear Menu, by D */
$"6172 7279 6C20 4C6F 7661 746F" /* arryl Lovato */
};
resource 'PAT#' (100, purgeable) {
{ /* array PatArray: 96 elements */
/* [1] */
$"FFFF FFFF FFFF FFFF",
/* [2] */
$"DDFF 77FF DDFF 77FF",
/* [3] */
$"DD77 DD77 DD77 DD77",
/* [4] */
$"AA55 AA55 AA55 AA55",
/* [5] */
$"55FF 55FF 55FF 55FF",
/* [6] */
$"AAAA AAAA AAAA AAAA",
/* [7] */
$"EEDD BB77 EEDD BB77",
/* [8] */
$"8888 8888 8888 8888",
/* [9] */
$"B130 031B D8C0 0C8D",
/* [10] */
$"8010 0220 0108 4004",
/* [11] */
$"FF88 8888 FF88 8888",
/* [12] */
$"FF80 8080 FF08 0808",
/* [13] */
$"80",
/* [14] */
$"8040 2000 0204 08",
/* [15] */
$"8244 3944 8201 0101",
/* [16] */
$"F874 2247 8F17 2271",
/* [17] */
$"55A0 4040 550A 0404",
/* [18] */
$"2050 8888 8888 0502",
/* [19] */
$"BF00 BFBF B0B0 B0B0",
/* [20] */
$"",
/* [21] */
$"8000 0800 8000 08",
/* [22] */
$"8800 2200 8800 22",
/* [23] */
$"8822 8822 8822 8822",
/* [24] */
$"AA00 AA00 AA00 AA",
/* [25] */
$"FF00 FF00 FF00 FF",
/* [26] */
$"1122 4488 1122 4488",
/* [27] */
$"FF00 0000 FF",
/* [28] */
$"0102 0408 1020 4080",
/* [29] */
$"AA00 8000 8800 80",
/* [30] */
$"FF80 8080 8080 8080",
/* [31] */
$"081C 22C1 8001 0204",
/* [32] */
$"8814 2241 8800 AA",
/* [33] */
$"40A0 0000 040A",
/* [34] */
$"0384 4830 0C02 0101",
/* [35] */
$"8080 413E 0808 14E3",
/* [36] */
$"1020 54AA FF02 0408",
/* [37] */
$"8000 0000 08",
/* [38] */
$"80",
/* [39] */
$"0002 4000 0000 0080",
/* [40] */
$"0002 4000 0000 0880",
/* [41] */
$"8000 1000 8002 0020",
/* [42] */
$"8002 0010 8002 0010",
/* [43] */
$"0092 0000 9200 0092",
/* [44] */
$"0092 0008 8220 0092",
/* [45] */
$"0092 0028 8228 0092",
/* [46] */
$"1082 1082 1082 1082",
/* [47] */
$"2288 2288 2288 2288",
/* [48] */
$"2288 22A8 2288 2288",
/* [49] */
$"2288 22A8 2288 2A88",
/* [50] */
$"228A 22A8 2288 2A88",
/* [51] */
$"228A 22A8 2288 AA88",
/* [52] */
$"228A A2A8 2288 AA88",
/* [53] */
$"228A AAA8 2288 AAA8",
/* [54] */
$"228A AAA8 228A AAA8",
/* [55] */
$"AA11 AA45 AA11 AA54",
/* [56] */
$"AA51 AA45 AA11 AA55",
/* [57] */
$"AA55 AA45 AA55 AA54",
/* [58] */
$"AA55 AA45 AA55 AA55",
/* [59] */
$"AA55 AA55 AA55 AA55",
/* [60] */
$"AA55 BA55 AA55 AA55",
/* [61] */
$"AA55 BA55 AA55 AB55",
/* [62] */
$"AA55 BA55 AA55 AB75",
/* [63] */
$"EE55 BA55 EA55 AB55",
/* [64] */
$"EE55 BA55 EE55 AB55",
/* [65] */
$"EE55 BA55 EE55 BB55",
/* [66] */
$"EE55 BB55 EE55 BB55",
/* [67] */
$"EE55 BB55 EE5D BB55",
/* [68] */
$"EE55 BB55 EE5D FB55",
/* [69] */
$"EE55 FB55 EE5D FB55",
/* [70] */
$"EE55 FF55 EE55 FF55",
/* [71] */
$"FF55 FF55 FF55 FF55",
/* [72] */
$"FF55 FF5D FF55 FF55",
/* [73] */
$"FF55 FF5D FF55 FFD5",
/* [74] */
$"FF55 FFDD FF55 FFD5",
/* [75] */
$"FF55 FFDD FF55 FFDD",
/* [76] */
$"FF57 FF5D FF75 FFD5",
/* [77] */
$"FF57 FF7D FF7D FFD7",
/* [78] */
$"FFDD FFFF FFF7 FF7F",
/* [79] */
$"FFDF FFFF FFF7 FF7F",
/* [80] */
$"FFFF FFF7 FFFF FF7F",
/* [81] */
$"FFFF FFFF FFFF FF7F",
/* [82] */
$"FFFF FFFF FFFF FFFF",
/* [83] */
$"7FBF DFBF 6BDD BD7B",
/* [84] */
$"FF03 0509 1121 4181",
/* [85] */
$"FF83 4529 1129 4583",
/* [86] */
$"FF93 5539 FF39 5593",
/* [87] */
$"FE93 5539 EF39 5593",
/* [88] */
$"FE93 1139 EF39 1193",
/* [89] */
$"1010 1038 EF38 1010",
/* [90] */
$"1192 5438 EF38 5492",
/* [91] */
$"1192 5438 EF38 5492",
/* [92] */
$"55AA 55BA 6DBA 55AA",
/* [93] */
$"5FA9 51A3 458A 55AA",
/* [94] */
$"55EA 7DA6 65BE 57AA",
/* [95] */
$"55AA 4182 4182 55AA",
/* [96] */
$"46A6 FFFF 4686 57AE"
}
/****** Extra bytes follow... ******/
/* $"0000 0034 0001 1400" /* ...4.... */
};